package com.gec.zhs.entity.enums;

/**
 * @author zhs
 * @version 1.0
 * @date 2025-01-08
 * @description
 */
public enum ResponseCodeEnum {
    CODE_200(200, "请求成功"),
    CODE_404(404, "请求地址不存在,请仔细检查URL地址"),

    CODE_600(600, "请求参数错误"),
    CODE_601(601, "信息已经存在"),

    CODE_602(602, "文件不存在"),
    CODE_603(603,"路劲不合法"),

    CODE_604(604, "文件不存在"),

    CODE_605(605, "文件大小不能超过4gb"),

    CODE_606(606, "投稿分片上传chunksIndex不合法"),

    CODE_607(607, "达到系统最大上传数量"),

    CODE_500(500, "服务器返回错误，请联系管理员"),
    CODE_503(503, "应用服务器错误,请联系管理员"),
    CODE_901(901, "未登录或登录超时,请重新登录");

    private Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
